package cn.flant.cfg;

public abstract class ConfigLoader {
	protected boolean isIgnoreCase = true;

	public void setIgnoreCase(boolean isIgnoreCase) {
		this.isIgnoreCase = isIgnoreCase;
	}

	public String getConfigKey(String key) {
		if (isIgnoreCase) {
			return key.toLowerCase();
		} else {
			return key;
		}
	}
}
